package com.ddkj.netty;

/**
 * 全局配置
 */
public class Setting {

    //===================================Socket 配置========================//

    /**
     * 默认TCP服务器端端口
     */
    public static final int SERVER_PORT = 9990;


    /**
     * 基础服务名称
     */
    public static final String BASIS_SERVER_NAME = "Socket 【基础服务】 服务";

    /**
     * 默认 socket 服务器地址
     */
    public static final String HOST = "0.0.0.0";

    /**
     * socket 接收发送请求头拼接 ddkj-netty-socket
     */
    public static final String DDKJ_NETTY_SOCKET_HEADER = "ddkj-netty-socket";

    /**
     * SOCKET作用域
     */
    public static final String SOCKET_DDKJ_NETTY = "socket_ddkj_netty";

    //===================================Socket 配置========================//

    //===================================Socket Air Server 配置========================//
    /**
     * Air Serve服务器端端口
     */
    public static final int SOCKET_AIR_SERVER_PORT = 9991;

    /**
     * 机场服务名称
     */
    public static final String AIR_SERVER_NAME = "Socket 【Air Server】 服务";

    /**
     * Air Serve 服务器地址
     */
    public static final String SOCKET_AIR_SERVER_HOST = "0.0.0.0";

    /**
     * 后台系统标识
     */
    public static final String AIR_SERVER_CODE = "airport";

    /**
     * socket 接收发送请求头拼接 ddkj-netty-air-socket
     */
    public static final String DDKJ_NETTY_AIR_SOCKET_HEADER = "ddkj-netty-air-socket";

    /**
     * SOCKET作用域
     */
    public static final String SOCKET_DDKJ_AIR_NETTY = "socket_ddkj_air_netty";

    //===================================Socket Air Server 配置========================//

    //===================================Socket Charging Server 配置[充电桩]========================//

    /**
     * Air Charging 服务器端端口
     */
    public static final int SOCKET_CHARGING_SERVER_PORT = 9992;

    /**
     * 标识标记 !!
     */
    public static final String CHARGING_BEAT_IDENTIFICATION = "F1F1";

    /**
     * 心跳通信码 05
     */
    public static final String CHARGING_IDENTIFICATION = "05";

    /**
     * 心跳成功返回
     */
    public static final String CHARGING_BEAT_SUCCESS_REQUEST = "%s" + CHARGING_IDENTIFICATION + "01%s%s";

    /**
     * 充电桩服务名称
     */
    public static final String CHARGING_SERVER_NAME = "Socket 【Charging Server】 服务";

    /**
     * 后台处理客户端名称“charging-server-cloud”
     */
    public static final String CHARGING_SERVER_CLOUD = "0AAAAAA1";

    /**
     * Charging Server 服务器地址
     */
    public static final String SOCKET_CHARGING_SERVER_HOST = "0.0.0.0";

    /**
     * socket 接收发送请求头拼接 ddkj-netty-charging-socket
     */
    public static final String DDKJ_NETTY_CHARGING_SOCKET_HEADER = "charging-socket-";

    /**
     * SOCKET作用域
     */
    public static final String SOCKET_DDKJ_CHARGING_NETTY = "charging_socket";


    //===================================Socket Charging Server 配置[充电桩]========================//

    //===================================WEB Socket 配置========================//
    /**
     * websocket 端口
     */
    public static final int WEB_SOCKET_PORT = 8880;

    /**
     * 默认web socket 服务器地址
     */
    public static final String WEB_SOCKET_HOST = "0.0.0.0";

    /**
     * web socket 接收发送请求头拼接 ddkj-netty-socket
     */
    public static final String DDKJ_NETTY_WEB_SOCKET_HEADER = "ddkj-netty-web-socket";

    /**
     * WEB_SOCKET作用域
     */
    public static final String WEB_SOCKET_DDKJ_NETTY = "web_socket_ddkj_netty";

    //===================================WEB Socket 配置========================//

    //===================================WEB Socket Parking 配置========================//

    /**
     * web parking socket 端口
     */
    public static final int WEB_SOCKET_PARKING_PORT = 8890;

    /**
     * 请求域
     */
    public static final String PARKING_URI = "/parking/";


    /**
     * @@@ 标识为向@@@发送消息
     */
    public static final String PARKING_IDENTIFICATION = "@@@";

    /**
     * 心跳成功标识
     */
    public static final String PARKING_HEARTBEAT_MARK_OK_CODE = "01";


    /**
     * 心跳串
     */
    public static final String PARKING_HEARTBEAT_MARK = "BEAT#00#00#%s#";


    /**
     * 请求成功返回状态
     */
    public static final String PARKING_REQUEST_SUCCESS = "SUCCESS";


    /**
     * 后台处理服务器地址
     */
    public static final String PARKING_SERVER_NAME = "daoding-parking-cloud-1";


    /**
     * 默认parking web socket 服务器地址
     */
    public static final String WEB_SOCKET_PARKING_HOST = "0.0.0.0";

    /**
     * web socket parking 接收发送请求头拼接 ddkj-netty-socket
     */
    public static final String DDKJ_NETTY_PARKING_WEB_SOCKET_HEADER = "ddkj-netty-web-socket-parking-";

    /**
     * WEB_SOCKET_PARKING 作用域
     */
    public static final String WEB_SOCKET_PARKING_DDKJ_NETTY = "web_socket_parking_ddkj_netty_";

    //===================================WEB Socket Parking 配置========================//

    /**
     * 版本
     */
    public static final int VERSION = 1;

    /**
     * redis服务器地址
     */
    // public static final String REDIS_HOST = "172.26.139.221";
    public static final String REDIS_HOST = "127.0.0.1";

    // public static final String REDIS_HOST = "r-2ze9926d277a5a94.redis.rds.aliyuncs.com";


    /**
     * redis 端口
     */
    public static final int REDIS_PORT = 6379;

    /**
     * redis 密码
     */
    // public static final String REDIS_PASSWORD = "kytsoft";
    public static final String REDIS_PASSWORD = "redis";
    //public static final String REDIS_PASSWORD = "2017DdsoFT0917ReDis";

    /**
     * redis 默认超时时间
     */
    public static final int EXPIRE = 0;

}
